package com.obtk.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 功能说明
 *
 * @author Mr.Sun
 * @date 2023-03-29 14:59:57
 */

public class Customer implements Serializable {
//CREATE TABLE `customer` (
//  `id` INT PRIMARY KEY AUTO_INCREMENT COMMENT 'id',
//  `cust_id` VARCHAR(50) NOT NULL COMMENT '客户编号',
//  `cust_name` VARCHAR (100) NOT NULL COMMENT '客户姓名',
//   chc_birthday DATE  NOT NULL COMMENT '客户生日',
//   cust_gender VARCHAR(3)  NOT NULL COMMENT '客户性别',
//  `cust_region` VARCHAR (50) COMMENT '客户地区',
//  `cust_mananger_id` INT COMMENT '客户经理编号',
//  `cust_mananger_name` VARCHAR (50) COMMENT '客户经理姓名',
//  `cust_level` INT COMMENT '客户等级',-- 1至5颗星
//  `cust_level_label` VARCHAR(50) COMMENT '客户等级描述',
//  `cust_satisfy` INT COMMENT '客户满意度',-- 1-5
//  `cust_credit` INT COMMENT '客户信用度',-- 1-10
//  `cust_address` VARCHAR(300) COMMENT '客户地址',
//  `cust_zip` CHAR(10) COMMENT '客户邮政编码',
//  `cust_tel` VARCHAR(50) COMMENT '客户电话',
//  `cust_status` CHAR(1) COMMENT '客户状态',-- 1目标、2流失
//  cust_order_num INT COMMENT '订单'
    private static final long serialVersionUID = -8736616045315083846L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;//'id
    private String custId;//'客户编号
    private String custName;//客户姓名
    private Date custBirthday;//'客户生日
    private String custGender;//'客户性别
    private String custRegion;//客户地区
    private Integer custManangerId;//客户经理编号
    private String custManangerName;//客户经理姓名
    private Integer custLevel;//客户等级
    private String custLevelLabel;//客户等级描述
    private Integer custSatisfy;//客户满意度
    private Integer custCredit;//客户信用度
    private String  custAddress;//客户地址
    private String custZip;//客户邮政编码
    private String custTel;//   客户电话
    private Integer custStatus;// 客户状态
    private Integer custOrderNum; //订单

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", custId='" + custId + '\'' +
                ", custName='" + custName + '\'' +
                ", custBirthday=" + custBirthday +
                ", custGender='" + custGender + '\'' +
                ", custRegion='" + custRegion + '\'' +
                ", custManangerId=" + custManangerId +
                ", custManangerName='" + custManangerName + '\'' +
                ", custLevel=" + custLevel +
                ", custLevelLabel='" + custLevelLabel + '\'' +
                ", custSatisfy=" + custSatisfy +
                ", custCredit=" + custCredit +
                ", custAddress='" + custAddress + '\'' +
                ", custZip='" + custZip + '\'' +
                ", custTel='" + custTel + '\'' +
                ", custStatus=" + custStatus +
                ", custOrderNum=" + custOrderNum +
                '}';
    }

    public Customer() {
    }

    public Customer(Integer id, String custId, String custName, Date custBirthday, String custGender, String custRegion, Integer custManangerId, String custManangerName, Integer custLevel, String custLevelLabel, Integer custSatisfy, Integer custCredit, String custAddress, String custZip, String custTel, Integer custStatus, Integer custOrderNum) {
        this.id = id;
        this.custId = custId;
        this.custName = custName;
        this.custBirthday = custBirthday;
        this.custGender = custGender;
        this.custRegion = custRegion;
        this.custManangerId = custManangerId;
        this.custManangerName = custManangerName;
        this.custLevel = custLevel;
        this.custLevelLabel = custLevelLabel;
        this.custSatisfy = custSatisfy;
        this.custCredit = custCredit;
        this.custAddress = custAddress;
        this.custZip = custZip;
        this.custTel = custTel;
        this.custStatus = custStatus;
        this.custOrderNum = custOrderNum;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public Date getCustBirthday() {
        return custBirthday;
    }

    public void setCustBirthday(Date custBirthday) {
        this.custBirthday = custBirthday;
    }

    public String getCustGender() {
        return custGender;
    }

    public void setCustGender(String custGender) {
        this.custGender = custGender;
    }

    public String getCustRegion() {
        return custRegion;
    }

    public void setCustRegion(String custRegion) {
        this.custRegion = custRegion;
    }

    public Integer getCustManangerId() {
        return custManangerId;
    }

    public void setCustManangerId(Integer custManangerId) {
        this.custManangerId = custManangerId;
    }

    public String getCustManangerName() {
        return custManangerName;
    }

    public void setCustManangerName(String custManangerName) {
        this.custManangerName = custManangerName;
    }

    public Integer getCustLevel() {
        return custLevel;
    }

    public void setCustLevel(Integer custLevel) {
        this.custLevel = custLevel;
    }

    public String getCustLevelLabel() {
        return custLevelLabel;
    }

    public void setCustLevelLabel(String custLevelLabel) {
        this.custLevelLabel = custLevelLabel;
    }

    public Integer getCustSatisfy() {
        return custSatisfy;
    }

    public void setCustSatisfy(Integer custSatisfy) {
        this.custSatisfy = custSatisfy;
    }

    public Integer getCustCredit() {
        return custCredit;
    }

    public void setCustCredit(Integer custCredit) {
        this.custCredit = custCredit;
    }

    public String getCustAddress() {
        return custAddress;
    }

    public void setCustAddress(String custAddress) {
        this.custAddress = custAddress;
    }

    public String getCustZip() {
        return custZip;
    }

    public void setCustZip(String custZip) {
        this.custZip = custZip;
    }

    public String getCustTel() {
        return custTel;
    }

    public void setCustTel(String custTel) {
        this.custTel = custTel;
    }

    public Integer getCustStatus() {
        return custStatus;
    }

    public void setCustStatus(Integer custStatus) {
        this.custStatus = custStatus;
    }

    public Integer getCustOrderNum() {
        return custOrderNum;
    }

    public void setCustOrderNum(Integer custOrderNum) {
        this.custOrderNum = custOrderNum;
    }
}
